package com.nercel.dsj.gksales.model.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 权限
 */
@Data
@ApiModel(value = "权限")
@JsonIgnoreProperties(value = {"handler"})
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "权限名字")
    private String name;

    @ApiModelProperty(value = "权限标识")
    private String permission;

    @ApiModelProperty(value = "URL匹配模式")
    private String url;

    @ApiModelProperty(value = "URL匹配模式")
    private Double orderIndex = 100D;

    @ApiModelProperty(value = "可分配")
    private Boolean assignable = true;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "状态")
    private Integer state;

}
